package com.shujia.mvc2;

import com.shujia.mvc2.controller.UserController;

import java.io.InputStream;
import java.util.Scanner;

public class TestModifyPassword {
    public static void main(String[] args) {



        //控制台输入流
        InputStream in = System.in;

        //包装流
        Scanner scanner = new Scanner(in);

        System.out.println("请输入用户名");
        String usernnmae = scanner.next();

        System.out.println("请输入源密码");
        String oldPassword = scanner.next();


        System.out.println("请输入新密码");
        String newPassword = scanner.next();

        System.out.println("请确认新密码");
        String noePassword = scanner.next();

        UserController userController = new UserController();

        String s = userController.modifyPassword(usernnmae, oldPassword, newPassword, noePassword);

        System.out.println(s);


    }
}
